package com.weetop.cfw.bean;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.google.gson.annotations.SerializedName;
import com.weetop.cfw.mine.adapter.AllLeaseSaleInformationAdapter;

import java.io.Serializable;
import java.util.List;

public class MyLeaseSaleInformationListBean extends ErrorBean {


    /**
     * records : 1
     * data : [{"infoid":405692,"title":"厂房出售，10万一平","imgurl":"/Upload/image/202003/20200318142044_9350.jpg","totalarea":"96000000","areaname":"余杭","address":"108路","isalone":"1","haslift":"1","floor":"100","status":1}]
     */

    private int records;
    private List<DataBean> data;

    public int getRecords() {
        return records;
    }

    public void setRecords(int records) {
        this.records = records;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "MyLeaseSaleInformationListBean{" +
                "records=" + records +
                ", data=" + data +
                '}';
    }

    public static class DataBean implements Serializable,MultiItemEntity {
        /**
         * infoid : 405692
         * title : 厂房出售，10万一平
         * imgurl : /Upload/image/202003/20200318142044_9350.jpg
         * totalarea : 96000000
         * areaname : 余杭
         * address : 108路
         * isalone : 1
         * haslift : 1
         * floor : 100
         * status : 1
         */
        private static final long serialVersionUID = -5809782578272943999L;
        private int infoid;
        private String title;
        private String intname;
        private int intid;
        private String typeid;
        private String typename;
        private String imgurl;
        private String totalarea;
        private String areaname;
        private String address;
        private String isalone;
        private String haslift;
        private String floor;
        @SerializedName("status")
        private int statusX;

        public int getIntid() {
            return intid;
        }

        public void setIntid(int intid) {
            this.intid = intid;
        }

        public int getInfoid() {
            return infoid;
        }

        public void setInfoid(int infoid) {
            this.infoid = infoid;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getImgurl() {
            return imgurl;
        }

        public void setImgurl(String imgurl) {
            this.imgurl = imgurl;
        }

        public String getTotalarea() {
            return totalarea;
        }

        public void setTotalarea(String totalarea) {
            this.totalarea = totalarea;
        }

        public String getAreaname() {
            return areaname;
        }

        public void setAreaname(String areaname) {
            this.areaname = areaname;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getIsalone() {
            return isalone;
        }

        public void setIsalone(String isalone) {
            this.isalone = isalone;
        }

        public String getHaslift() {
            return haslift;
        }

        public void setHaslift(String haslift) {
            this.haslift = haslift;
        }

        public String getFloor() {
            return floor;
        }

        public void setFloor(String floor) {
            this.floor = floor;
        }

        public int getStatusX() {
            return statusX;
        }

        public void setStatusX(int statusX) {
            this.statusX = statusX;
        }

        public void setIntname(String intname) {
            this.intname = intname;
        }

        public String getIntname() {
            return intname;
        }

        public void setTypeid(String typeid) {
            this.typeid = typeid;
        }

        public String getTypeid() {
            return typeid;
        }

        public void setTypename(String typename) {
            this.typename = typename;
        }

        public String getTypename() {
            return typename;
        }

        @Override
        public int getItemType() {
            return statusX == 0? AllLeaseSaleInformationAdapter.PUBLISH:AllLeaseSaleInformationAdapter.UNAUDITED;
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "infoid=" + infoid +
                    ", title='" + title + '\'' +
                    ", intname='" + intname + '\'' +
                    ", typeid='" + typeid + '\'' +
                    ", typename='" + typename + '\'' +
                    ", imgurl='" + imgurl + '\'' +
                    ", totalarea='" + totalarea + '\'' +
                    ", areaname='" + areaname + '\'' +
                    ", address='" + address + '\'' +
                    ", isalone='" + isalone + '\'' +
                    ", haslift='" + haslift + '\'' +
                    ", floor='" + floor + '\'' +
                    ", statusX=" + statusX +
                    '}';
        }
    }
}
